package com.mcxx.modules.miniSalvation.order.service.write;


import com.mcxx.modules.miniSalvation.order.dao.write.IncomeCertWriteDao;
import com.mcxx.modules.miniSalvation.order.entity.IncomeCert;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@TaTransactional
public class IncomeCertWriteService {
    @Autowired
    private IncomeCertWriteDao incomeCertWriteDao;


    public int insert(IncomeCert entity){
        return incomeCertWriteDao.insert(entity);
    }

    public int insertIgnoreNull(IncomeCert entity){
        return incomeCertWriteDao.insertIgnoreNull(entity);
    }

    public int deleteById(String id){
        return incomeCertWriteDao.deleteById(id);
    }


    public int insertCopy(String orderId,String newOrderId){
        return incomeCertWriteDao.insertCopy(orderId,newOrderId);
    }
}
